 <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="http://apps.bdimg.com/libs/angular.js/1.4.6/angular.min.js"></script>
</head>
<body>
<!--
<div ng-app="">
  <p>名字 : <input type="text" ng-model="name"></p>
  <h1>Hello {{name}}</h1>
</div>
-->

<div ng-app="" ng-init="names=[
{name:'3',country:'1'},
{name:'2',country:'2'},
{name:'1',country:'3'}];
names2=['Jani','Hege','Kai']">

<p>循环对象:</p>
<ul>
  <li ng-repeat="x in names | orderBy:name">
  {{ x.name + ', ' + x.country }}</li>
  
</ul>

<p>循环对象:</p>
<ul>
  <li ng-repeat="x in names">
  {{ x.name + ', ' + x.country }}</li>
  
</ul>

</div>

</body>
</html> 